home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1997 #3
/
Amiga Plus CD - 1997 - No. 03.iso
/
pd
/
programmierung
/
alienbreed3d2_src
/
amos
/
linkup.amos
/
linkup.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1997-01-31
|
983b
|
51 lines
Set Buffer 100
Screen Open 1,320,256,2,Lowres
Input "Level number:";A$
Curs Off : Flash Off : Cls 0
Wait Vbl
Limit Mouse
NU=100
Erase 12
Reserve As Work 15,NU^2
Reserve As Work 11,NU^2
Reserve As Work 14,NU^2
Reserve As Work 13,(NU^2)*2
Reserve As Work 12,NU*NU
Pload "ab3:includes/newlinkup.aminc",12
N=Start(12)
Loke N,Start(11)
Loke N+4,Start(14)
Loke N+8,Start(13)
Doke N+12,NU
GO=Start(12)+14
Bload "ab3:levels/level_"+A$+"/twolev.links",Start(11)
S=Start(11) : T=Start(15)
For A=0 To NU-1
For B=0 To NU-1
If Peek(S)=2
Poke T,1
Else
Poke T,Peek(S)
End If
Add T,1
Add S,1
Next
Next
Call GO
Bsave "ab3:levels/level_"+A$+"/twolev.map",Start(14) To Start(14)+NU*NU
'S=1
'Repeat
'Input T
'Print Deek(Start(13)+(S*64+T)*2);
'S=Peek(Start(14)+64*S+T)
'Print S and $7F;
'If S and $80 Then Print "*";
'Print
'Until 0
Loke N,Start(15)
Call GO
Bsave "ab3:levels/level_"+A$+"/twolev.flymap",Start(14) To Start(14)+NU*NU